Clean up #include in a few places, and fix non-CONFIG_SMP builds.
xen/slab.h has unused __ARCH_HAS_SLAB_ALLOCATOR removed, but I added
back include xen/mm.h for the time being -- it can go after ia64 is
cleaned up to include mm.h only where necessary.
Signed-off-by: Keir Fraser <keir@xensource.com>
#include <xen/sched.h>
#include <xen/spinlock.h>
#include <xen/slab.h>
+#include <xen/mm.h>
#include <xen/irq.h>
#include <xen/softirq.h>
#include <xen/shadow.h>
#include <xen/sched-if.h>
#include <xen/softirq.h>
#include <xen/trace.h>
+#include <xen/mm.h>
#include <public/sched_ctl.h>
/* opt_sched: scheduler - default to Borrowed Virtual Time */
#include <xen/console.h>
#include <xen/serial.h>
#include <xen/keyhandler.h>
+#include <xen/mm.h>
#include <asm/uaccess.h>
-#include <asm/mm.h>
#include <asm/debugger.h>
#include <asm/io.h>
#include <xen/types.h>
#include <xen/perfc.h>
#include <xen/sched.h>
+#include <xen/mm.h>
#include <asm/processor.h>
#include <asm/domain_page.h>
#include <public/dom0_ops.h>
typedef u32 cpumask_t;
+#ifndef cpu_online_map
extern cpumask_t cpu_online_map;
+#endif
static inline int cpus_weight(cpumask_t w)
{
#define __SLAB_H__
#include <xen/config.h>
-
-#ifdef __ARCH_HAS_SLAB_ALLOCATOR
-
-#include <asm/slab.h>
-
-#else
+#include <xen/mm.h>
/* Allocate space for typed object. */
#define xmalloc(_type) ((_type *)_xmalloc(sizeof(_type), __alignof__(_type)))
return _xmalloc(size * num, align);
}
-#endif /* __ARCH_HAS_SLAB_ALLOCATOR */
-
#endif /* __SLAB_H__ */